local L = locale ~= "zh" and locale ~= "zhr" -- true 英文  false 中文

version = "1.1.26" 
name = L and "Homura Akemi" or "晓美焰"
description = 
[[
2021.10.1
1. 时停期间攻击蜂巢和蜘蛛巢不再会触发里面的小动物。 
2. 时停期间可以正常的给传送焦点放置紫宝石了。
3. AWM 瞄准模式适配手柄。 [x]

在steam创意工坊或lw-老王的b站空间查看详细说明。

mod介绍页:
https://dont-starve-mod.github.io/lw/zh/homura_index/
]]
author = "老王, 羽中, bow-car"
forumthread = ""
api_version = 10

priority = -2029316030 - 209631439

dont_starve_compatible = false
dst_compatible = true

all_clients_require_mod = true

server_filter_tags = { 
    "character",
}

icon_atlas = "images/modicon.xml"
icon = "modicon.tex"

local alpha = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}
local keyslist = {}
for i = 1,#alpha do keyslist[i] = {description = alpha[i], data = i + 64} end

local ON = {description = L and "On" or "开", data = true}
local OFF = {description = L and "Off" or "关", data = false}
configuration_options =

{
    {
        name = "language",
        label = L and "Language" or "语言",
        hover = L and "Set language" or"设置语言",
        options =  {
            {description = L and "Auto" or "自动", data = "AUTO"},
            {description = "English", data = "ENG"},
            {description = "中文", data = "CHI"}, 
        },
        default = "AUTO",
    },

    {
        name = "skillkey",
        label = L and "Skill key" or "技能键",
        hover = L and "Set hot key for skill" or "设置时停技能的键位",
        options = keyslist,
        default = 76, --L
    },   

    {
        name = 'playerdmg',
        label = L and 'Fratricide' or '友伤',
        hover = L and 'AOE weapons can hurt your teammate' or '范围效果的武器不分敌我',
        options = {
            ON,
            OFF,
        },
        default = true,
    },

    {
        name = "blast",
        label = L and "Time magic effect" or "时停特效",
        hover = L and "Special effect when time magic is activated" or "时停技能被发动时的特效表现",
        options = {
            {description = L and "Grey & Blast" or "灰色 + 冲击波", data = true},
            {description = L and "Grey" or "仅灰色", data = false},
        },
        default = true,
    },
}

-- BugTracker configuration 
-- https://steamcommunity.com/sharedfiles/filedetails/?id=2427481232
bugtracker_config = {
    url = "http://8.131.61.37/log-upload-homura/",
    -- url = "http://127.0.0.1:8000/log-upload-homura/",

    auto_upload = true,
}
